package com.gf.gf_data.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类--账户
 *
 * Created by Eternal_L on 2018/1/9.
 */
public class Account implements Serializable{

    private static final long serialVersionUID = -8840236135980916092L;

    private Long id;         // 用户ID

    private String phone;    // 手机号

    private String areaCode; // 手机号码区号

    private String password; // 密码

    private String name;     // 用户名

    private String role;     // 角色

    private String salt;     // 盐

    private Integer status;  // 账户状态（0：正常 1：不可用 2：待审核 3：已冻结），默认2

    private Date updateTime; // 更新时间

    private Date regTime;    // 注册时间

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode == null ? null : areaCode.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }
}